package com.example.demo.Repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.example.demo.Entity.Log;



/**
 * @version: V0.7
 * @author: 郑皓杰
 * @className: ILogRepository
 * @packageName: com.example.demo.Repository
 * @description: 这是日志实体数据链接的接口
 * @data: 2021-07-20
 **/

public interface ILogRepository extends JpaRepository<Log, Integer>{

	public Log findByName(String name);
	
	@Query(value="select * from log order by weight",nativeQuery=true)
	public List<Log> findAllinOrder();
}
